/**
 * 
 */
package sequence;

public class TimedInt implements Comparable<TimedInt> {
	private long time;

	private int value;
	
	public TimedInt() {
	}

	public TimedInt(long time, int id) {
		this.time = time ;
		this.value = id ;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int id) {
		this.value = id;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public int compareTo(TimedInt o) {
		return time < o.time ? -1 : (time == o.time ? 0 : 1);
	}
}